/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package systole.view.preview;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 *
 * @author jmj
 */
public class PreviewCloseListener implements ActionListener {

    private PreviewController controller;

    /**
     *
     * @param controller
     */
    public PreviewCloseListener(PreviewController controller) {
        super();
        this.controller = controller;
    }

    public void actionPerformed(ActionEvent e) {
        this.controller.closeForm();
    }
}
